package cn.xiaoqi.dubbo.nacos.service;

import cn.xiaoqi.dubbbo.nacos.api.UserRpcService;
import cn.xiaoqi.dubbbo.nacos.dto.UserDTO;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "${dubbo.provider.UserRpcService.version}")
public class UserRpcServiceImpl implements UserRpcService {
    @Override
    public UserDTO get(Integer id) {
        return new UserDTO().setId(id)
                .setName("没有昵称:" + id)
                .setGender(id % 2 + 1);
    }
}
